<?php

namespace app\data\model;

use think\admin\Model;

/**
 * @package app\data\model
 */
class GoodsAttributeRelations extends Model
{
    protected $table = "goods_attribute_relations";

    public function attribute()
    {
        return $this->belongsTo(GoodsAttribute::class, 'attribute_id', 'id');
    }

    public function attributeValue()
    {
        return $this->belongsTo(GoodsAttributeValue::class, 'value', 'id');
    }
}